- 将 While Loop 添加到程序中。删除 while 循环中的两个默认指令。
- 将循环上方的变量更改为 code。将值更改为具有两个方括号 [ ] 的空列表。
- 当 code 的 len() (长度)小于 < 4 时,让循环运行。
- 将 Random Choice 拖动到循环内部。将其命名为 next_col 并将列表参数更改为 colors。
- if next_col 不在代码 code 列表中,则将 next_col 的值 Append 到列表 code。
- 在循环外部,添加一个 Wait 指令,使控制台暂停 1 秒。
To navigate the page using the TAB key, first press ESC to exit the code editor.